<?php

Class Mantra_glade extends Connect {
    
    private $mantras = array();
    
    
    /**
     * $arr = RECREATE
    */
    function checkMantra($user, $arr){
        if(count(Mantra::$mantras['glade']) == 0) return $arr;
        $this->mantras = Mantra::$mantras['glade'];
        
        foreach($this->mantras as $key => $val){                                          
            $arr = $arr - ($arr*(floatval($val['force'])/100));    
        }
        return $arr;
    }        
}
?>